export function getFileType(fileName, removeDot = false) {
  if (!fileName.includes('.')) return ''

  // 获取最后一个 "." 后面的内容
  const extension = fileName.substring(fileName.lastIndexOf('.') + 1)

  return removeDot ? extension : `.${extension}`
}
